package com.lh.portal.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lh.pojo.Pic;
import com.lh.portal.service.impl.PicServiceImpl;

@Controller
public class PicController {
	
	@Resource
	PicServiceImpl picServiceImpl;
	
	@RequestMapping("/show")
	public String show(Map<String, Object> map) {
		List<Pic> list = picServiceImpl.findAllPics();
		map.put("list", list);
		return "forward:main.jsp";
		
	}
	
}
